﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>SquareTASKS</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/reset.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/960gs.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/reveal.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/movingboxes.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/custom-theme/jquery-ui-1.8.18.custom.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui-timepicker-addon.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/base.css")" rel="stylesheet" type="text/css" />

    <!--<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>-->
	<script type="text/javascript">
	    var routes = {};
	</script>
	<!-- Scripts prioritaires -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.min.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery-ui-1.8.18.custom.min.js")"></script>
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/director/director-1.0.7.min.js")"></script>
	<!-- les routes -->
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/accueil.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/account.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/favoris.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/corbeille.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/historique.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/search.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/director/add.js")"></script>
	<!-- Script de la librairie JIT -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/jit.js")"></script>

	<!-- Les scripts de l'appli -->
		<!-- script du popUp -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.reveal.js")"></script>
		<!-- script du treemap -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/conditionTreemap.js")"></script>

    <script type="text/javascript">

        var lesTasks = [];

        function loadData(callback) {
            $.ajax({
                url: 'home/datas',
                data: 'json',
                cache: false,
                success: function (data) {
                    lesTasks = data;
                    if (callback)
                        callback(data);
                }
            });

            return lesTasks;
        }

        function getData() {
            //var json = jQuery.parseJSON(lesTasks.responseText);
            //return json;
            return lesTasks;
        }

        //var lesTasks = loadData();
        loadData();

    </script>
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/functionTreemap.js")"></script>
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/lieuTreemap.js")"></script>
	<!--[if IE]><script language="javascript" type="text/javascript" src="js/excanvas.js"></script><![endif]-->
		<!-- script pour ramener les infos du treemap dans la popUp -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/chargerPopUp.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.movingboxes.min.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/slide.js")"></script>
		<!-- script pour la google map -->
	<!--<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyDUpYzxHyPBB636w9g6WPZRGBECjZkqqw8&sensor=true_or_false" type="text/javascript"></script>-->
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.auto-geocoder.min.js")"></script>
		<!-- timerPicker pour les alertes -->
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery-ui-timepicker-addon.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.ui.datepicker-fr.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery-ui-timepicker-fr.js")"></script>
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/functionBasic.js")"></script>

		<!-- script pour resizer la police au sein des tâches | Police Responsive -->
	<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.fittext.js")"></script>		
	
	<!-- chargement des routes -->
	<script type="text/javascript">

	    $(document).ready(function () {

	        //Route par default
	        /*$('#content').load('Home/accueil', function () {

	        initTreemap('infovis', IsAccueil, getData());
	        policeTask();
	        compter(lesTasks);
	        });*/

	        var router = Router(routes);
	        router.init();

	        if (window.location.hash == '')
	            router.setRoute('/');
	    });
	</script>
</head>

<body>
    @RenderBody()
</body>
</html>
